Skip to content

[6.x] Default the create user wizard super toggle to false#14927

Merged
jasonvarga merged 3 commits into
statamic:6.xfrom
stoffelio:feature/configurable-default-super
Jul 3, 2026
Merged

[6.x] Default the create user wizard super toggle to false#14927
jasonvarga merged 3 commits into
statamic:6.xfrom
stoffelio:feature/configurable-default-super

Conversation

@stoffelio

@stoffelio stoffelio commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

This changes the default of the super user toggle to false. This prevents high privileged users being created if you breeze through the wizard without paying attention. It's better to lock down permissions by default.

You can still toggle it back on with a single click, or if you breeze past and forget, it's simple to upgrade them to a super after the fact.

Also updated some missing test coverage while in the area.

Closes statamic/ideas#1467

The user creation wizard defaults the "Super Admin" toggle to on for
any super user creating an account, making it easy to grant super
admin unintentionally. This adds a `statamic.users.wizard_default_super`
config option (default `true`, preserving current behaviour) so the
toggle can be made an explicit opt-in by setting it to `false`.

The toggle default is still gated on `canCreateSupers`, so a non-super
creator can never end up with a pre-checked super toggle, and the
server-side guard in the store method is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga

Copy link
Copy Markdown
Member

I don't think we need the config. We can just make it default to off.

@jasonvarga

Copy link
Copy Markdown
Member

I can make that change though.

@jasonvarga jasonvarga changed the title [6.x] Add config to control default state of Super Admin toggle [6.x] Default the create user wizard super toggle to false Jul 3, 2026
@jasonvarga

jasonvarga commented Jul 3, 2026

Copy link
Copy Markdown
Member

I have made the change and edited your title/description to reflect what's actually happening.

Also updated some missing test coverage while in the area.

Thanks for the nudge on this!

@jasonvarga jasonvarga enabled auto-merge (squash) July 3, 2026 16:59
@jasonvarga jasonvarga merged commit 840d093 into statamic:6.x Jul 3, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User creation wizard always defaults to super=true

2 participants